package cn.hy.util;

import org.junit.Test;

public class StringUtil {
    public static String reverse(String str) {
        String result = new String();
        char[] c = str.toCharArray();
        for (int index = c.length-1; index >= 0; index--) {
            result += c[index];
        }
        return result;
    }
}
